<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let p = Promise.reject('000').then()
    console.log(p, '===');
    let p1 = new Promise((resolve, reject) => {
      setTimeout(reject, 3000)
    })
    let p2 = new Promise((resolve, reject) => {
      reject()
    })
    Promise.all([p1, p2]).then(res => {
      console.log('666');

    }).catch(err => {
      setTimeout(() => {
        console.log(p1);
        console.log(p2);
      }, 5000)
    })
    let p4 = 5
    let p3 = Promise.resolve(9)
    Promise.race([p3, p4]).then(res => {
      console.log(res);
    })
    let p5 = Promise.any([new Promise(() => { })]).then(res => {
    })
    setTimeout(() => {
      console.log(p5);
      
    })
  </script>
</body>

</html>